package net.maku.events.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Author: qr
 * @Date: 2025/3/27 22:46
 * @Version 1.0
 */
@Data
@TableName("user_comment")
public class UserCommentEntity {

    /**
     * id
     */
    @TableId
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 用户id
     */
    @TableField(value = "business_id")
    private Long businessId;

    /**
     * 活动类型
     */
    @TableField(value = "business_type")
    private Integer businessType;

    /**
     * 点赞量
     */
    @TableField(value = "likes")
    private Integer likes;

    /**
     * 评论内容
     */
    @TableField(value = "comment_contents")
    private String commentContents;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

}
